﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 权限设置数据传输对象
    /// </summary>
    public class PermissionOptionsDto
    {
        public PermissionOptionsDto()
        {
            OperateList = new List<PermissionDto>();
        }

        /// <summary>
        /// 权限代码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 操作列表
        /// </summary>
        public List<PermissionDto> OperateList { get; set; }
        /// <summary>
        /// 子节点
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public List<PermissionOptionsDto> Children { get; set; }
    }
}
